import request from '@/utils/request.js'
import service from "@/utils/request.js";
// 将所有的针对user的请求，都封装到一个对象中
/*const studentApi = {
    list(conditions) {
        /!*return axios.get('http://localhost:8080/student/list', {params: conditions})
            .then(response => {
                console.log(response)
                return response.data
            })*!/
        return request.get('/student/list', {params: conditions})
    }
}

export default studentApi*/

export const studentApi = {
    list(conditions) {
        return service.get('/student/list', {params: conditions});
    }
}